/**
 * @FileName : QAResp
 * @Author : kirk.wang
 * @Time : 2025/5/27 12:57
 * @Description : 文件描述
 */
export interface QAResp {
  code: number;
  message: string;
  data: Array<QARespRespData>;
  count: number;
  start: number;
  total: number;
  title: string;
}

export interface QARespRespData {
  id: string;

  //类型
  type: number;

  //标题
  title: string;

  //内容
  content: string;

  //标签
  tags: Array<TagData>;

  //作者名称
  nickname: string;

  //作者头像
  avatar: string;

  //阅读量
  viewCnt: string;

  //发布时间
  postTime: string;

  //回复
  summary: string;
}

export interface TagData {
  id: string;

  //类型
  tagId: number;

  //标题
  tagName: string;

  //问题ID
  questionId: string;

}

///问答详情
export interface QaDetailResp {
  code: number,
  data: QaDetailData;
  message: string
}

export interface QaDetailData {
  account: string;
  adoptionAnswerId: string;
  allow: true,
  answerTotal: string;
  appendContent: string;
  avatarName: string;
  avatarPath: string;
  content: string;
  id: string;
  ip: string;
  ipAddress: string;
  isMarkdown: true,
  lastAnswerTime: string;
  lastUpdateTime: string;
  markdownContent: string;
  nickname: string;
  postTime: string;
  summary: string;
  tags: Array<TagData>,
  title: string;
  userName: string;
  viewTotal: string;
}

///问答详情
export interface AnswerListResp {
  code: number,
  count: number,
  data: Array<AnswerItemData>,
  message: string,
  start: number,
  title: string,
  total: number
}

export interface AnswerItemData {
  account: string,
  adoption: boolean,
  avatarName: string,
  avatarPath: string,
  content: string,
  id: string,
  ip: string,
  ipAddress: string,
  isMarkdown: boolean,
  isStaff: boolean,
  markdownContent: string,
  nickname: string,
  postTime: string,
  questionId: string,
  questionTitle: string,
  status: number,
  userInfoStatus: number,
  userName: string,
  answerReplyList:Array<AnswerItemData>
}
// {
//   "code": 0,
// "count": 0,
// "data": [
//   {
//     "account": "string",
//   "adoption": true,
//     "avatarName": "string",
//   "avatarPath": "string",
//   "content": "string",
//   "id": "string",
//   "ip": "string",
//   "ipAddress": "string",
//   "isMarkdown": true,
//   "isStaff": true,
//   "markdownContent": "string",
//   "nickname": "string",
//   "postTime": "string",
//   "questionId": "string",
//   "questionTitle": "string",
//   "status": 0,
//   "totalReply": "string",
//   "userInfoStatus": 0,
//   "userName": "string"
// "answerReplyList": [
//     {
//       "account": "string",
//     "answerId": "string",
//     "avatarName": "string",
//     "avatarPath": "string",
//     "content": "string",
//     "id": "string",
//     "ip": "string",
//     "ipAddress": "string",
//     "isStaff": true,
//     "nickname": "string",
//     "postTime": "string",
//     "questionId": "string",
//     "questionTitle": "string",
//     "status": 0,
//     "userName": "string"
//     }
//     ],
//   }
//   ],
//   "message": "string",
// "start": 0,
// "title": "string",
// "total": 0
// }